// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Axios from 'axios'
import router from './router'
import ElementUI from 'element-ui'
import * as echarts from 'echarts'
import VueNativeSock from 'vue-native-websocket'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Vue.use(VueNativeSock, 'ws://localhost:8080/ws', {
  reconnection: true,
  format: 'json',
  connectManually: true
})
Vue.prototype.$echarts = echarts
Vue.prototype.$axios = Axios
//后台根路由
Vue.prototype.$url = 'http://localhost:8080'
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
